package com.ang.create.prototype2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ANG.YU
 * @date 2020-09-22 11:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MilkTea implements Cloneable {
    private String type;
    private String size;
    private A a;

    @Override
    protected MilkTea clone() throws CloneNotSupportedException {
        MilkTea result = (MilkTea) super.clone();
        result.setA(this.getA().clone());
        return result;
    }
}
